Release 10.1A: OpenEdge Development:
Programming Interfaces


Conversions from COM to Progress data types

Table A–2 lists the possible conversions from COM data types to Progress data types when accessing COM object properties, method return values, method output parameters, and event input parameters.

If the destination Progress data item has a different data type than the one listed in Table A–2, Progress tries to convert it. Also, if the COM data type returned to Progress does not match any of the COM data types listed in Table A–2, the Progress data item receives the Unknown value (?).

Note: The names for COM data types in Table A–2 conform to a nomenclature used in the documentation for most COM objects. For matching alternatives to these names, seen in some documentation and COM object viewers, see Table A–3.

Table A–2: Conversions from COM to Progress data types
COM data type
Progress data type
Boolean
LOGICAL 
Byte
INTEGER 
Byte[]
RAW 
Currency
DECIMAL 
Date
DATETIME 
Double
DECIMAL 
Integer (2-byte integer)
INTEGER 
Long (4-byte integer)
INTEGER 
Object (Base)
COM-HANDLE 
Object (COM)
COM-HANDLE 
Single (Float)
DECIMAL 
String
CHARACTER 
Unsigned Byte
INTEGER 
Unsigned Long (4-byte integer)
INTEGER 
Unsigned Short (2-byte integer)
INTEGER 

Note: Progress resolves any Pointer or Variant Pointer references to COM data types, then converts the value to the corresponding Progress data type.


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095